<?php
    session_start();
    include_once '../../../../controlador/php/conexion/Conexion.php';
    $con = new Conexion();
    
    $numS = $_REQUEST['codUnidad'];
    
    $can = "select count(*) as canti from lTransfunc where ltr_numSe='".$numS."'";
    $res = $con->query($can);
    
    while($res2 = mssql_fetch_array($res)){
        $cant = $res2['canti'];
    }
    
    if($cant == '1'){
        print_r(json_encode(array('resp'=>1)));
    }else if($cant > '1'){
        print_r(json_encode(array('resp'=>2)));
    }else{
        print_r(json_encode(array('resp'=>3)));
    }
    
    
    $con->cerrarConexion();
?>
